import os
import time

import pytest

from common.maile_tools import send_email

if __name__ == '__main__':
    # pytest_options = ["-s", "-v", "--html=./report/report.html", "-m=api"]
    pytest.main()
    #生成allure测试报告 ，清理旧数据
    os.system("allure generate ./allure-data -o ./reports --clean")
    time.sleep(3)
    # send_email()